package com.zhuiyun.educations.api.video.service;

import com.zhuiyun.educations.api.video.entity.FileMerge;
import com.zhuiyun.educations.common.errorCode.CommonException;
import com.zhuiyun.educations.common.response.CommonResult;
import com.zhuiyun.educations.util.pageUtil.PageRequest;
import com.zhuiyun.educations.util.pageUtil.PageResult;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.util.List;

/**
 * @ClassName VideoService
 * @Description TODO
 * @Author 杨友朋
 * @Date 2023/7/7 9:38
 **/
public interface VideoService {
    /**
    * @Author 杨友朋
    * @Description TODO 分页全查
    * @Date 2023/7/7 15:06
    * @Return
    * @param pageRequest
    */
    PageResult selectVideo(PageRequest pageRequest);

    /**
    * @Author 杨友朋
    * @Description TODO 全查
    * @Date 2023/7/7 15:07
    * @Return
    * @param
    */
    List<FileMerge> selectAll();

    FileMerge selectById(Integer id);



    void getVideoById(HttpServletResponse response, Integer id) throws CommonException, FileNotFoundException;
}
